package com.kele.order.feign;

import com.kele.model.goods.dto.GoodsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "kele-goods",fallback = GoodsFeignClientImpl.class)
public interface GoodsFeignClient {

    @GetMapping("/goods/selectById/{id}")
    public GoodsDTO selectById(@PathVariable Long id);

}
